package com.example.demo.service;

import com.example.demo.entity.Employee;
import com.example.demo.entity.dto.QueryEmployeeVo;
import com.github.pagehelper.PageInfo;

import java.util.List;


public interface EmployeeService {
    public Employee login(String username, String password);


    Employee findEmpByName(String username);

    boolean registerAdmin(Employee employee);

    PageInfo<Employee> queryByPageAndCondition(QueryEmployeeVo queryEmployeeVo);


    boolean updateEmployee(Employee employee);

    Employee findEmpById(String userId);

    boolean addEmployee(Employee employee);

    boolean editEmployee(Employee employee);

    boolean removeEmployees(String... ids);

    List<Employee> queryAll();


    boolean insertBatch(List<Employee> employees);

    boolean updateStatus(String id,String status);
}

